package typejump.util;

/**
 * Generic class which keeps track of Integers with String id's
 * @author g
 *
 */
public class IntKeeper extends StateKeeper<Integer> {

	public IntKeeper(Integer def) {
		super(def);
	}
	
	public IntKeeper() {
		this(0);
	}
	
	/**
	 * Increments the Integer at the given String by the given value
	 * @param s
	 * @param value
	 */
	public void mod(String s, int value) {
		set(s, get(s) + value);
	}

}
